package cj.com.chabaike.dao;

import android.content.Context;

import com.lidroid.xutils.BitmapUtils;

/**
 * Created by CJLAB on 2015/8/10.
 * 用于获取网络图片
 *
 */
public class FetchBitmapDAO {
    private static BitmapUtils bitmapUtils;
    private static FetchBitmapDAO fetchBitmapDAO;
    static  Context appContext;
    private  FetchBitmapDAO(Context appContext){
        appContext = appContext;
    }


    public static FetchBitmapDAO getfetchBitmapDAOInstance(Context appContext) {
        if (fetchBitmapDAO == null) {
            fetchBitmapDAO = new FetchBitmapDAO(appContext);
        }
        return fetchBitmapDAO;
    }


    private static BitmapUtils getBitmapUtils() {
        if (bitmapUtils == null) {
            bitmapUtils = new BitmapUtils(appContext);
        }
        return bitmapUtils;
    }








}
